{% block sw_sales_channel_detail_hreflang %}
<mt-card
    :title="$tc('sw-sales-channel.detail.hreflang.title')"
    class="sw-sales-channel-detail-hreflang"
    position-identifier="sw-sales-channel-detail-hreflang"
>
    {% block sw_sales_channel_detail_hreflang_title %}
    <h4>
        <span class="sw-sales-channel-detail-domains__headline-text sw-sales-channel-detail-base__headline-text">{{ $tc('sw-sales-channel.detail.hreflang.titleCard') }}</span>
    </h4>
    {% endblock %}

    {% block sw_sales_channel_detail_hreflang_content %}
    {% block sw_sales_channel_detail_hreflang_content_description %}
    <div class="sw-sales-channel-detail-base__description-text">
        {{ $tc('sw-sales-channel.detail.hreflang.titleDescription') }}
    </div>
    {% endblock %}

    {% block sw_sales_channel_detail_hreflang_content_enable %}

    <mt-switch
        v-model="salesChannel.hreflangActive"
        :label="$tc('sw-sales-channel.detail.hreflang.enableCheckbox')"
        :disabled="disabled || undefined"
        @update:model-value="salesChannel.hreflangDefaultDomainId = null"
    />
    {% endblock %}

    {% block sw_sales_channel_detail_hreflang_content_domain %}
    <sw-entity-single-select
        v-model:value="salesChannel.hreflangDefaultDomainId"
        :disabled="!salesChannel.hreflangActive || disabled || undefined"
        :label="$tc('sw-sales-channel.detail.hreflang.defaultDomain')"
        entity="sales_channel_domain"
        :criteria="domainCriteria"
        label-property="url"
        show-clearable-button
    />
    {% endblock %}

    {% endblock %}
</mt-card>
{% endblock %}
